<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 单边框 */
        div {
            /* 下边框 */
            border-bottom: 1px dashed black;
            /* 上边框 */
            border-top: 1px red solid;
            /*左边框 */
            border-left: 1px blue dotted;
            /* 右边框 */
            border-right: 1px blue dotted;
        }
    </style>
</head>

<body>
    <div>
        1
    </div>
</body>

</html>